﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace mscook.core.utils
{
    public sealed class FileUtil
    {
        public static string GetFileText(string name)
        {
            string fileContents = String.Empty;

            // If the file has been deleted since we took  
            // the snapshot, ignore it and return the empty string. 
            if (System.IO.File.Exists(name))
            {
                fileContents = System.IO.File.ReadAllText(name);
            }
            return fileContents;
        }
    }
}
